import { defineStore } from 'pinia'

export const useMainStore = defineStore('main', {
  state: () => ({
    isDarkMode: false,
    isMenuOpen: false
  }),
  
  actions: {
    toggleDarkMode() {
      this.isDarkMode = !this.isDarkMode
      document.documentElement.classList.toggle('dark')
    },
    toggleMenu() {
      this.isMenuOpen = !this.isMenuOpen
    }
  }
})